﻿using System;
using System.Collections.Generic;
using System.Text;

using FundSms.Client.IDAL;
using FundSms.Client.Model;

namespace FundSms.Client.BLL
{
    public class SmsSendList
    {
        private static readonly ISmsSendList dal = FundSms.Client.DALFactory.DataAccess.CreateSmsSendList();

        public IList<TSMSSendHundSunInfo> GetSendList()
        {
            return dal.GetSendList();
        }

        public IList<TSMSSendHundSunInfo> GetSendList(int rownum)
        {
            return dal.GetSendList(rownum);
        }

        public IList<TSMSSendHundSunInfo> GetSendList(int rownum,int count,int mod)
        {
            return dal.GetSendList(rownum,count,mod);
        }

        public TSMSSendHundSunInfo GetSms(int id)
        {
            return dal.GetSms(id);
        }

        public void DeleteSms()
        {
            dal.DeleteSms();
        }

        public void DeleteSms(int id)
        {
            dal.DeleteSms(id);
        }

        public void DeleteSmsList(string idlist)
        {
            dal.DeleteSmsList(idlist);
        }

        public int GetUnSendCount()
        {
            return dal.GetUnSendCount();
        }
    }
}
